package com.whisper.application.service.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.whisper.common.excel.annotation.Excel;
import com.whisper.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 志愿活动对象 vr_act
 * 
 * @author whisper
 * @date 2024-01-07
 */
public class VrAct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 活动ID */
    private Long id;

    /** 活动标题 */
    @Excel(name = "活动标题")
    private String title;

    /** 发起人 */
    @Excel(name = "发起人")
    private String initiator;

    /** 活动类型 */
    @Excel(name = "活动类型")
    private String actType;

    /** 集合地点 */
    @Excel(name = "集合地点")
    private String venue;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 联系邮箱 */
    @Excel(name = "联系邮箱")
    private String email;

    /** 活动内容 */
    @Excel(name = "活动内容")
    private String content;

    /** 招募人数 */
    @Excel(name = "招募人数")
    private Integer capacity;

    /** 活动状态（-1结束 0未开始 1进行中） */
    @Excel(name = "活动状态", readConverterExp = "0=未开始,1=进行中,2=结束")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 活动开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "活动开始时间")
    private Date startTime;

    /** 活动结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "活动结束时间")
    private Date endTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setInitiator(String initiator) 
    {
        this.initiator = initiator;
    }

    public String getInitiator() 
    {
        return initiator;
    }
    public void setActType(String actType)
    {
        this.actType = actType;
    }

    public String getActType()
    {
        return actType;
    }
    public void setVenue(String venue) 
    {
        this.venue = venue;
    }

    public String getVenue() 
    {
        return venue;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getCapacity() {
        return capacity;
    }

    public void setCapacity(Integer capacity) {
        this.capacity = capacity;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("initiator", getInitiator())
            .append("actType", getActType())
            .append("venue", getVenue())
            .append("phone", getPhone())
            .append("email", getEmail())
            .append("content", getContent())
            .append("capacity", getCapacity())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
